package com.cx.service.lq.Impl;

import com.cx.pojo.Chat;
import com.cx.service.lq.ChatService;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class ChatServiceImpl implements ChatService {
    @Override
    public Chat chatwith(int friendUserId, int userId, String chatContent) {
        Date date = new Date();
        Chat chat = new Chat();
        chat.setUserId(userId);
        chat.setChatUserId(friendUserId);
        chat.setChatContent(chatContent);
        chat.setChatTime(date);
        return chat;
    }
}
